import request from '@/utils/request'

export function addDevice(data) {
  return request({
    url: '/adddevice',
    method: 'post',
    data
  })
}

export function getDeviceList(data) {
  return request({
    url: '/getdeviceslist',
    method: 'post',
    data
  })
}
export function updateDevice(data) {
  return request({
    url: '/updatedevice',
    method: 'post',
    data
  })
}

export function getDeviceDetail(data) {
  return request({
    url: '/getdevicedetail',
    method: 'post',
    data
  })
}

export function deleteDevice(data) {
  return request({
    url: '/deletedevice',
    method: 'post',
    data
  })
}

export function getDeviceCategory(data) {
  return request({
    url: '/getdevicecategory',
    method: 'post',
    data
  })
}

export function assetList(data) {
  return request({
    url: '/asset/assetlist',
    method: 'post',
    data
  })
}

export function assignDevice(data) {
  return request({
    url: '/assign',
    method: 'post',
    data
  })
}

export function cancelAssignDevice(data) {
  return request({
    url: '/canceldeviceassign',
    method: 'post',
    data
  })
}

export function deleteAssignDevice(data) {
  return request({
    url: '/deletedeviceassign',
    method: 'post',
    data
  })
}
